<template>
    <div class="DIV">
        <!-- //这是财务报表视图，用于生成和展示财务报表和统计分析。 -->
        <!-- 头部标题 -->
        <header>
            <h1>财务报表</h1>
        </header>
        <!-- 主体图表 -->
        <article>
            <!-- Echarts图 -->
            <div class="caiwu">
                <div class="money">
                    <div>
                        <span>
                            初期资金
                            <i></i>
                        </span>
                        <h4>500000</h4>
                    </div>
                    <div>
                        <span>
                            收入金额
                            <i></i>
                        </span>
                        <h4>100000</h4>
                    </div>
                    <div>
                        <span>
                            支出金额
                            <i></i>
                        </span>
                        <h4>40000</h4>
                    </div>
                    <div>
                        <span>
                            结余资金
                            <i></i>
                        </span>
                        <h4>400000</h4>
                    </div>
                </div>
                <!-- 图像 -->
                <div class="caiwu_one">
                    <!-- 饼图 -->
                    <div class="pie">
                        <EchartPie />
                    </div>
                    <!-- 柱状图 -->
                    <div class="histogram">
                        <EchartHistogram />
                    </div>
                </div>
            </div>
            <!-- 报表列表 -->
            <div class="biao">
                <ReportForms />
            </div>
        </article>

    </div>
</template>

<script>

import EchartPie from '../../components/Finance/EchartPie.vue'
import EchartHistogram from '../../components/Finance/EchartHistogram.vue'
import ReportForms from '../../components/Finance/ReportForms.vue'

    export default {
        components:{
            EchartPie,
            EchartHistogram,
            ReportForms
        }

    }
</script>

<style lang="less" scoped>
.DIV{
    width: 100%;
    height: 100%;
}
// 头部标题
header{
    width: 100%;
    height: 10%;
    background-color: #fff;
    // text-align: center;
    h1{
        margin-left: 25%; 
        line-height: 60px;
        font-weight: 600;
    }
}
// 主体图表
article{
    width: 100%;
    height: 90%;
    // background-color: red;
    display: flex;
    //  Echarts图
    .caiwu{
        flex: 1;
        height: 100%;
        // background-color: antiquewhite;
        .money{
            width: 100%;
            height: 20%;
            // background-color: aqua;
            display: flex;
            div{
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                border-radius: 8px;
                background-color:#feeeee;
            }
        }
        .caiwu_one{
            width: 100%;
            height: 80%;
            // background-color: red;
            padding: 13px;
            box-sizing: border-box;
            display: flex;
            .pie{
                width: 35%;
                height: 100%;
                background-color: #fff;
                margin-right: 5vw;
                border-radius: 10px;
            }
            .histogram{
                width: 65%;
                height: 100%;
                background-color: #fff;
                 border-radius: 10px;
            }
        }
    }
    // 报表列表
    .biao{
        width: 25%;
        height: 100%;
        background-color: blueviolet;
    }
}
</style>